package com.xinzhi.service;


import com.xinzhi.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinzhi.utils.Result;

import java.math.BigDecimal;
import javax.servlet.http.HttpServletRequest;

/**
 *
 */
public interface UserService extends IService<User> {

    Result getInfo(int id);

    Result uptname(String tname, int id);

    Result upheadshot(String headshot, int id);

    Result recharge(int id, BigDecimal money);

    Result inMan(Integer userid,String name,String phone);

    Result getMan(Integer id);

    Result deMan(Integer id);

    Result upMan(Integer id,String name,String phone);

    Result saveUser(User user);
    /**
     * 发短信
     * @param tel  要接收的手机号
     * @param request
     * @return
     * @throws Exception
     */
    Result send(String tel, HttpServletRequest request) throws Exception;

    Result telReg(User user);



    User findUser(String username, String password);

    Result findUserByToken(String token);
}
